package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hlx
 * @date 2022/12/10 0010
 * @apiNote
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    public void batchInsert(@Param("newId") Integer newId,
                            @Param("materialIds") List<Integer> materialIds,
                            @Param("type") byte type);

}
